<template>
  <Person v-if="showTo"></Person>
</template>

<script setup lang="ts" name="App">
  import Person from './components/Person.vue'
  import { ref,onMounted } from 'vue'
  let showTo = ref(true)

  // 挂载完成
  onMounted(()=>{
    console.log('父----挂载完毕')
  })
</script>

<style>

</style>